'use strict';

/**
 * @param {Egg.Application} app - egg application
 */
module.exports = app => {
  let auth = app.middleware.auth({title:"中间件"})
  const { router, controller } = app;
  router.get('/', auth,controller.home.index)
  router.get('/detail', controller.detail.index)
  router.get('/movie', controller.movie.index)
};
